package com.dt76.smallloanbackendservice.controller.xm;

import com.dt76.smallloanbackendservice.pojo.xm.HLoanProducts;
import com.dt76.smallloanbackendservice.service.xm.HLoanProductService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;


@Controller
@RequestMapping("/xm")
public class HLoanProductController {

    @Resource
    private HLoanProductService hLoanProductService;

    @RequestMapping("/HLoanProducts/qryAllHLoanProduct")
    @ResponseBody
    public List<HLoanProducts> qryAllHLoanProduct(){
        return hLoanProductService.qryAllHLoanProduct();
    }
}
